# plugs/login.html
#
#

from gozerlib.commands import cmnds

from google.appengine.api import users as gusers 

def handle_login(bot, ievent):
    url = gusers.create_login_url('')

    if ievent.type == 'web':
       ievent._raw('please <a href="%s">login</a> at google' % url)
    else:
       ievent._raw('please login at google: "%s"' % url)

cmnds.add('login', handle_login, ['USER', ])
    